package com.th.supcom.pds.dispensedrug.client.widget;

import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.util.Margins;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;

/**
 * 核对发药右侧主面板，包含当前窗口处方主记录面板和处方明细面板
 * 
 * @author 杨冲
 */
public class DispenseDrugDetailPanel extends ContentPanel
{
    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";
    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";

    private final DispenseDrugRecipeDetailPanel m_disDispenseDrugRecipeDetailPanel;

    /**
     * 构造函数
     * 
     * @param dispenseDrugDrugPanel
     * @param disDispenseDrugRecipeDetailPanel
     */
    public DispenseDrugDetailPanel (final DispenseDrugRecipeDetailPanel disDispenseDrugRecipeDetailPanel)
    {

        m_disDispenseDrugRecipeDetailPanel = disDispenseDrugRecipeDetailPanel;
        initUI ();
    }

    /**
     * 初始化UI
     */
    private void initUI ()
    {

        this.setHeaderVisible (false);
        this.setBodyBorder (false);
        this.setBorders (false);
        this.setLayout (new BorderLayout ());

        final BorderLayoutData centerData = new BorderLayoutData (LayoutRegion.CENTER);
        centerData.setMargins (new Margins (2, 5, 2, 2));
        final BorderLayoutData northData = new BorderLayoutData (LayoutRegion.NORTH, 600);
        northData.setMargins (new Margins (2, 5, 2, 2));

        this.add (m_disDispenseDrugRecipeDetailPanel, northData);
        // this.add (createColorShow(), centerData);
    }

}
